package com.example.therDays.ui.screens


import androidx.compose.foundation.background
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.verticalScroll
import androidx.compose.material.Scaffold
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
import androidx.lifecycle.viewmodel.compose.viewModel
import com.example.therDays.ui.components.WeatherTopBar
import com.example.therDays.ui.components.moreInformation.MoreInformation
import com.example.therDays.ui.components.prediction.Prediction
import com.example.therDays.ui.vModel.WeatherModel

@Composable
fun Weather(NavPop:()->Unit , vm:WeatherModel= viewModel()) {
    Scaffold {
        Column {
            WeatherTopBar(NavPop = NavPop)
            Column(modifier = Modifier.verticalScroll(rememberScrollState()).padding(bottom = 20.dp)) {
                Prediction(PredictionList = vm.predictionList)
                MoreInformation()
            }
        }
    }
}


